package com.shanghaionstar.carmanage.model;

import com.onstar.cn.mag.dealer.Pageables;
import com.onstar.cn.more.entity.OrderHistoryType;

import java.util.List;

/**
 * 4G订单记录
 * Created by Yonglang Hong on 2016/7/29.
 */
public class OrderRecordResponseEntity {

    List<OrderHistoryType> orderList;

    Pageables pageable;

    public boolean hasNextPage(){
        if (pageable == null)
            return false;
        return  (pageable.getTotalSize() > pageable.getPageSize()) && (orderList != null && !orderList.isEmpty());
    }

    public Pageables getPageable() {
        return pageable;
    }

    public void setPageable(Pageables pageable) {
        this.pageable = pageable;
    }

    public List<OrderHistoryType> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<OrderHistoryType> orderList) {
        this.orderList = orderList;
    }
}
